import Vue from 'vue'
import Vuex from 'vuex'
import user from "./modules/user";
import theme from "./modules/theme";
import good from "./modules/good";
import staff from './modules/staff';
import inventory from './modules/inventory';
import UIState from "./modules/UIState";
Vue.use(Vuex)

export default new Vuex.Store({
  //namespaced:true,
  modules:{
    user:user,
    good:good,
    staff:staff,
    inventory:inventory,
    theme:theme,
    UIState:UIState,
  },
  state:{
    total:'test'
  },
  mutations:{
    findWithKind(state,kind){
      console.log('******Vuex-store-total****')
      console.log(state.total)
    }
  }
})
